package memento;

import memento.memento.ActorMemento;
import memento.memento.SaveManager;

public class Main {
    public static void main(String[] args) {
        SaveManager saveManager=new SaveManager();
        Actor actor=new Actor();
        actor.smallSkill();
        actor.beAttack(2);
        actor.goHome();
        actor.bigSkill();
        actor.changeWeapon("Ak");
        actor.beAttack(1);
        saveManager.saveMemento(actor.saveProgress());
        actor.treatment();
        actor.smallSkill();
        actor.beAttack(5);
        saveManager.saveMemento( actor.saveProgress());
        actor.recovery(saveManager.firstMemento());

    }
}
